<!--
 * @Description: 背景
 * @Author: charles
 * @Date: 2021-08-12 11:36:09
 * @LastEditors: charles
 * @LastEditTime: 2021-08-12 11:41:32
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>背景</title>
  <style>
    .box {
      border: 10px dashed #ccc;
      width: 500px;
      height: 400px;
      margin: 10px;
      padding: 10px;

      background-image: url('./images/carousel2.jpg');
      background-repeat: no-repeat;
      background-clip: border-box;
      background-origin: content-box;
    }
  </style>
</head>
<body>
  <div class="box">hello worldhello worldhello world hello world hello world hello world hello world hello world </div>
</body>
</html>
